<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http:dream/cust_tag.tld" prefix="page"%>
<c:forEach var="vo" varStatus="vs" items="${pageVO.details}">
	<tr id="item${vs.count}">
		<td class="text-center">
			<c:out value="${vs.count}"/>
		</td>
		<td class="text-left ellipsis">
			<c:out value="${vo.appCode.name}"/>
		</td>
		<td class="text-center" >
			 <input type="hidden" id="id${vs.count}" value="${vo.id }"/>
			 <input type="text" class="input-large" maxlength="3" name="sequence" id="sequence${vs.count}"  value="${vo.sequence }" disabled >
		</td>
		<td class="text-left ellipsis" >
			 <input type="text" class="input-large" maxlength="50" name="name" id="name${vs.count}"  value="${vo.name }" disabled >
		</td>
		<td class="text-left ellipsis" >
			 <input type="text" class="input-large" maxlength="50" name="extension" id="extension${vs.count}"  value="${vo.extension }" disabled >
		</td>
		<td class="text-center">
			<a id="save${vs.count}" class="btn btn-success hide btn-small" href='javascript:void(0)' onclick="saveItem('#id${vs.count}','#sequence${vs.count}','#name${vs.count}','#extension${vs.count}')" >
				保存
			</a>
			<a id="modify${vs.count}" class="btn btn-warning btn-small" href='javascript:void(0)' onclick="modifyItem('${vs.count}')" >
				修改
			</a>
			&nbsp;&nbsp;
			<a class="btn btn-danger btn-small"href='javascript:void(0)' onclick="delCode('${vo.id}')"  >
				删除
			</a>
		</td>
	</tr>
</c:forEach>
<tr>
<td colspan="6" class="text-center" >
	<page:webpaging function="common.ajaxPagingQuery('${root}/app/code/item/list')" totalCount="${pageVO.count}"></page:webpaging>
</td>
</tr>
 		


